package com.ly.houses.mapper;

import com.ly.houses.model.Building;
import com.ly.houses.model.Plate;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BuildingMapper {
    void  batchSave(List<Building> list);
    void  batchUpdate(List<Building> list);
    List<Building>   selectAllBuilding();
    List<Building>   listBuildingByPlateId(@Param("plateId") Long plateId);
    Building   getById(@Param("buildingId") Long buildingId);
    void removeAll(List<Building> list);
}
